package com.lf.entity.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import org.omg.CORBA.PUBLIC_MEMBER;

import com.lf.entity.shiti.teacher;

public class teacher_Mapper implements RowMapper<teacher>{

	@Override
	public List<teacher> getTList(ResultSet rs) {
		 List<teacher> list = new ArrayList<teacher>();
		 try {
			while(rs.next()){
				teacher t = new teacher();
				t.setT_id(rs.getString("t_id"));
				t.setT_name(rs.getString("t_name"));
				t.setT_password(rs.getString("t_password"));
				list.add(t);
			}
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
			return list;
	}

}
